package org.fuyd.designpattern;

import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;
import com.mashape.unirest.http.exceptions.UnirestException;

/**
 * Created by Jason on 2015/10/25.
 */
public class App5 {

    public static void main(String[] args) throws UnirestException {
        HttpResponse<String> httpResponse =
                Unirest
                        .get("https://api.github.com/users/technoweenie")
                        .header("Accept", "application/vnd.github.VERSION.raw+json")
                        .asString();

        System.out.println(httpResponse.getBody());
        
    }
}
